package cn.tedu.pojo;

import java.util.Date;

/**
 * class表的映射实体类
 */
public class Classes {
    /**
     * 基于class表的字段,添加类属性
     * ①属性名和字段名保持一致,但是类的属性要遵守驼峰规则
     * ②属性的类型和字段的类型保持一致
     * 数据库字段类型 实体类属性类型
     * int Integer
     * bigint Long
     * varchar String
     * date java.util.Date或者String
     */
    //id int
    private Integer id;
    //name varchar
    private String name;
    //floor int
    private Integer floor;
    //teacher_id int
    private Integer teacherId;

    //alt+insert → Getter and Setter
    public Integer getId() {
        return this.id;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public Integer getFloor() {
        return this.floor;
    }

    public void setFloor(final Integer floor) {
        this.floor = floor;
    }

    public Integer getTeacherId() {
        return this.teacherId;
    }

    public void setTeacherId(final Integer teacherId) {
        this.teacherId = teacherId;
    }

    //alt+insert → toString()
    @Override
    public String toString() {
        return "Classes{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", floor=" + floor +
                ", teacherId=" + teacherId +
                '}';
    }
}
